package edu.sctu.practice.class02.shilaihong.assign05.practice4;

/**
 * Created by admin on 2015/12/20.
 */
public class Sub_Sort_Demo extends Sort_Demo {
    void sort(int t1,int t2[]){
        for (j=i+1;j<t1;j++){

            if (t2[j]>t2[k]) k=j;
            if (k!=i){

                swap=t2[i];
                t2[i]=t2[k];
                t2[k]=swap;
            }
        }
    }
}
